//
//  M1HerCircleofFriendsCell.m
//  NewMarryU
//
//  Created by Cedar on 2018/7/16.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1HerCircleofFriendsCell.h"

@implementation M1HerCircleofFriendsCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self m1_createUI];
    }
    return self;
}

- (void)m1_createUI{
    UIImageView *icon = [[UIImageView alloc] init];
    icon.image = LOAD_LOCAL_IMG(@"details_icon_circleOfFriends");
    [self.contentView addSubview:icon];
    
    [icon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(23);
        make.centerY.equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(24, 24));
    }];
    
    UILabel *title = [[UILabel alloc] init];
    title.text = @"Ta的动态";
    title.textColor = m1_color(0x333333);
    title.font = m1_font(15);
    [self.contentView addSubview:title];
    
    [title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(icon.mas_right).offset(10);
        make.centerY.equalTo(icon.mas_centerY);
    }];
    
    UIImageView *across = [[UIImageView alloc] init];
    across.image = LOAD_LOCAL_IMG(@"personal_icon_across");
    [self.contentView addSubview:across];
    
    [across mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-21);
        make.centerY.equalTo(icon.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(5, 9));
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
